package com.dm.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.dm.entity.Manager;
import com.dm.mapper.ManagerMapper;
import com.dm.service.IManagerService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author dancun
 * @since 2021-05-02
 */
@Service
public class ManagerServiceImpl extends ServiceImpl<ManagerMapper, Manager> implements IManagerService {
    @Autowired
    ManagerMapper managerMapper;
    @Override
    public List<Manager> listManager(QueryWrapper wrapper) {
        return managerMapper.listManager(wrapper);
    }

    @Override
    public Manager getOneMamager(Integer id) {
        return managerMapper.getOneManager(id);
    }
}
